﻿@model HomeDetailsViewModel
@{
    ViewBag.Title = "学生详细信息";
    var photoPath = "~/images/"+( Model.Student.PhotoPath?? "img1.jpg");
}
<div class="row justify-content-center m-3">
    <div class="col-8">
        <div class="card">
            <div class="card-header">
                <h1>@Model.Student.Name</h1>
            </div>
            <div class="card-body text-center">
                <img src="@photoPath" width="600" height="300"  asp-append-version="true"/>"
                <h4>学生ID:@Model.Student.Id</h4>
                <h4>邮箱:@Model.Student.Email</h4>
                <h4>班级:@Model.Student.ClassName</h4>
            </div>
            <div class="card-footer text-center">
                <a asp-controller="home" asp-action="index" class="btn btn-primary">返回</a>
                <a asp-controller="home" asp-action="edit" class="btn btn-primary">编辑</a>
                <a  asp-controller="home" asp-action="delete" asp-route-id="@Model.Student.Id" class="btn btn-danger">删除</a>
            </div>
        </div>
    </div>
</div>
